// source --> http://larsonsrealestate.com/wp-content/themes/inspiry-real-places/js/infobox.js?ver=1.1.9 function InfoBox(opt_opts){opt_opts=opt_opts||{};google.maps.OverlayView.apply(this,arguments);this.content_=opt_opts.content||"";this.disableAutoPan_=opt_opts.disableAutoPan||false;this.maxWidth_=opt_opts.maxWidth||0;this.pixelOffset_=opt_opts.pixelOffset||new google.maps.Size(0,0);this.position_=opt_opts.position||new google.maps.LatLng(0,0);this.zIndex_=opt_opts.zIndex||null;this.boxClass_=opt_opts.boxClass||"infoBox";this.boxStyle_=opt_opts.boxStyle||{};this.closeBoxMargin_=opt_opts.closeBoxMargin||"2px";this.closeBoxURL_=opt_opts.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif";if(opt_opts.closeBoxURL===""){this.closeBoxURL_="";}this.infoBoxClearance_=opt_opts.infoBoxClearance||new google.maps.Size(1,1);this.isHidden_=opt_opts.isHidden||false;this.alignBottom_=opt_opts.alignBottom||false;this.pane_=opt_opts.pane||"floatPane";this.enableEventPropagation_=opt_opts.enableEventPropagation||false;this.div_=null;this.closeListener_=null;this.eventListener1_=null;this.eventListener2_=null;this.eventListener3_=null;this.moveListener_=null;this.contextListener_=null;this.fixedWidthSet_=null;}InfoBox.prototype=new google.maps.OverlayView();InfoBox.prototype.createInfoBoxDiv_=function(){var bw;var me=this;var cancelHandler=function(e){e.cancelBubble=true;if(e.stopPropagation){e.stopPropagation();}};var ignoreHandler=function(e){e.returnValue=false;if(e.preventDefault){e.preventDefault();}if(!me.enableEventPropagation_){cancelHandler(e);}};if(!this.div_){this.div_=document.createElement("div");this.setBoxStyle_();if(typeof this.content_.nodeType==="undefined"){this.div_.innerHTML=this.getCloseBoxImg_()+this.content_;}else{this.div_.innerHTML=this.getCloseBoxImg_();this.div_.appendChild(this.content_);}this.getPanes()[this.pane_].appendChild(this.div_);this.addClickHandler_();if(this.div_.style.width){this.fixedWidthSet_=true;}else{if(this.maxWidth_!==0&&this.div_.offsetWidth>this.maxWidth_){this.div_.style.width=this.maxWidth_;this.div_.style.overflow="auto";this.fixedWidthSet_=true;}else{bw=this.getBoxWidths_();this.div_.style.width=(this.div_.offsetWidth-bw.left-bw.right)+"px";this.fixedWidthSet_=false;}}this.panBox_(this.disableAutoPan_);if(!this.enableEventPropagation_){this.eventListener1_=google.maps.event.addDomListener(this.div_,"mousedown",cancelHandler);this.eventListener2_=google.maps.event.addDomListener(this.div_,"click",cancelHandler);this.eventListener3_=google.maps.event.addDomListener(this.div_,"dblclick",cancelHandler);this.eventListener4_=google.maps.event.addDomListener(this.div_,"mouseover",function(e){this.style.cursor="default";});}this.contextListener_=google.maps.event.addDomListener(this.div_,"contextmenu",ignoreHandler);google.maps.event.trigger(this,"domready");}};InfoBox.prototype.getCloseBoxImg_=function(){var img="";if(this.closeBoxURL_!==""){img="mapWidth){xOffset=pixPosition.x+iwWidth+iwOffsetX+padX-mapWidth;}if(this.alignBottom_){if(pixPosition.y<(-iwOffsetY+padY+iwHeight)){yOffset=pixPosition.y+iwOffsetY-padY-iwHeight;}else if((pixPosition.y+iwOffsetY+padY)>mapHeight){yOffset=pixPosition.y+iwOffsetY+padY-mapHeight;}}else{if(pixPosition.y<(-iwOffsetY+padY)){yOffset=pixPosition.y+iwOffsetY-padY;}else if((pixPosition.y+iwHeight+iwOffsetY+padY)>mapHeight){yOffset=pixPosition.y+iwHeight+iwOffsetY+padY-mapHeight;}}if(!(xOffset===0&&yOffset===0)){var c=map.getCenter();map.panBy(xOffset,yOffset);}}}};InfoBox.prototype.setBoxStyle_=function(){var i,boxStyle;if(this.div_){this.div_.className=this.boxClass_;this.div_.style.cssText="";boxStyle=this.boxStyle_;for(i in boxStyle){if(boxStyle.hasOwnProperty(i)){this.div_.style[i]=boxStyle[i];}}if(typeof this.div_.style.opacity!=="undefined"&&this.div_.style.opacity!==""){this.div_.style.filter="alpha(opacity="+(this.div_.style.opacity*100)+")";}this.div_.style.position="absolute";this.div_.style.visibility='hidden';if(this.zIndex_!==null){this.div_.style.zIndex=this.zIndex_;}}};InfoBox.prototype.getBoxWidths_=function(){var computedStyle;var bw={top:0,bottom:0,left:0,right:0};var box=this.div_;if(document.defaultView&&document.defaultView.getComputedStyle){computedStyle=box.ownerDocument.defaultView.getComputedStyle(box,"");if(computedStyle){bw.top=parseInt(computedStyle.borderTopWidth,10)||0;bw.bottom=parseInt(computedStyle.borderBottomWidth,10)||0;bw.left=parseInt(computedStyle.borderLeftWidth,10)||0;bw.right=parseInt(computedStyle.borderRightWidth,10)||0;}}else if(document.documentElement.currentStyle){if(box.currentStyle){bw.top=parseInt(box.currentStyle.borderTopWidth,10)||0;bw.bottom=parseInt(box.currentStyle.borderBottomWidth,10)||0;bw.left=parseInt(box.currentStyle.borderLeftWidth,10)||0;bw.right=parseInt(box.currentStyle.borderRightWidth,10)||0;}}return bw;};InfoBox.prototype.onRemove=function(){if(this.div_){this.div_.parentNode.removeChild(this.div_);this.div_=null;}};InfoBox.prototype.draw=function(){this.createInfoBoxDiv_();var pixPosition=this.getProjection().fromLatLngToDivPixel(this.position_);this.div_.style.left=(pixPosition.x+this.pixelOffset_.width)+"px";if(this.alignBottom_){this.div_.style.bottom=-(pixPosition.y+this.pixelOffset_.height)+"px";}else{this.div_.style.top=(pixPosition.y+this.pixelOffset_.height)+"px";}if(this.isHidden_){this.div_.style.visibility='hidden';}else{this.div_.style.visibility="visible";}};InfoBox.prototype.setOptions=function(opt_opts){if(typeof opt_opts.boxClass!=="undefined"){this.boxClass_=opt_opts.boxClass;this.setBoxStyle_();}if(typeof opt_opts.boxStyle!=="undefined"){this.boxStyle_=opt_opts.boxStyle;this.setBoxStyle_();}if(typeof opt_opts.content!=="undefined"){this.setContent(opt_opts.content);}if(typeof opt_opts.disableAutoPan!=="undefined"){this.disableAutoPan_=opt_opts.disableAutoPan;}if(typeof opt_opts.maxWidth!=="undefined"){this.maxWidth_=opt_opts.maxWidth;}if(typeof opt_opts.pixelOffset!=="undefined"){this.pixelOffset_=opt_opts.pixelOffset;}if(typeof opt_opts.alignBottom!=="undefined"){this.alignBottom_=opt_opts.alignBottom;}if(typeof opt_opts.position!=="undefined"){this.setPosition(opt_opts.position);}if(typeof opt_opts.zIndex!=="undefined"){this.setZIndex(opt_opts.zIndex);}if(typeof opt_opts.closeBoxMargin!=="undefined"){this.closeBoxMargin_=opt_opts.closeBoxMargin;}if(typeof opt_opts.closeBoxURL!=="undefined"){this.closeBoxURL_=opt_opts.closeBoxURL;}if(typeof opt_opts.infoBoxClearance!=="undefined"){this.infoBoxClearance_=opt_opts.infoBoxClearance;}if(typeof opt_opts.isHidden!=="undefined"){this.isHidden_=opt_opts.isHidden;}if(typeof opt_opts.enableEventPropagation!=="undefined"){this.enableEventPropagation_=opt_opts.enableEventPropagation;}if(this.div_){this.draw();}};InfoBox.prototype.setContent=function(content){this.content_=content;if(this.div_){if(this.closeListener_){google.maps.event.removeListener(this.closeListener_);this.closeListener_=null;}if(!this.fixedWidthSet_){this.div_.style.width="";}if(typeof content.nodeType==="undefined"){this.div_.innerHTML=this.getCloseBoxImg_()+content;}else{this.div_.innerHTML=this.getCloseBoxImg_();this.div_.appendChild(content);}if(!this.fixedWidthSet_){this.div_.style.width=this.div_.offsetWidth+"px";if(typeof content.nodeType==="undefined"){this.div_.innerHTML=this.getCloseBoxImg_()+content;}else{this.div_.innerHTML=this.getCloseBoxImg_();this.div_.appendChild(content);}}this.addClickHandler_();}google.maps.event.trigger(this,"content_changed");};InfoBox.prototype.setPosition=function(latlng){this.position_=latlng;if(this.div_){this.draw();}google.maps.event.trigger(this,"position_changed");};InfoBox.prototype.setZIndex=function(index){this.zIndex_=index;if(this.div_){this.div_.style.zIndex=index;}google.maps.event.trigger(this,"zindex_changed");};InfoBox.prototype.getContent=function(){return this.content_;};InfoBox.prototype.getPosition=function(){return this.position_;};InfoBox.prototype.getZIndex=function(){return this.zIndex_;};InfoBox.prototype.show=function(){this.isHidden_=false;if(this.div_){this.div_.style.visibility="visible";}};InfoBox.prototype.hide=function(){this.isHidden_=true;if(this.div_){this.div_.style.visibility="hidden";}};InfoBox.prototype.open=function(map,anchor){var me=this;if(anchor){this.position_=anchor.getPosition();this.moveListener_=google.maps.event.addListener(anchor,"position_changed",function(){me.setPosition(this.getPosition());});}this.setMap(map);if(this.div_){this.panBox_();}};InfoBox.prototype.close=function(){if(this.closeListener_){google.maps.event.removeListener(this.closeListener_);this.closeListener_=null;}if(this.eventListener1_){google.maps.event.removeListener(this.eventListener1_);google.maps.event.removeListener(this.eventListener2_);google.maps.event.removeListener(this.eventListener3_);google.maps.event.removeListener(this.eventListener4_);this.eventListener1_=null;this.eventListener2_=null;this.eventListener3_=null;this.eventListener4_=null;}if(this.moveListener_){google.maps.event.removeListener(this.moveListener_);this.moveListener_=null;}if(this.contextListener_){google.maps.event.removeListener(this.contextListener_);this.contextListener_=null;}this.setMap(null);}; // source --> http://larsonsrealestate.com/wp-content/themes/inspiry-real-places/js/markerclusterer.js?ver=2.1.1 function ClusterIcon(cluster,styles){cluster.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView);this.cluster_=cluster;this.className_=cluster.getMarkerClusterer().getClusterClass();this.styles_=styles;this.center_=null;this.div_=null;this.sums_=null;this.visible_=false;this.setMap(cluster.getMap());}ClusterIcon.prototype.onAdd=function(){var cClusterIcon=this;var cMouseDownInCluster;var cDraggingMapByCluster;this.div_=document.createElement("div");this.div_.className=this.className_;if(this.visible_){this.show();}this.getPanes().overlayMouseTarget.appendChild(this.div_);this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){cDraggingMapByCluster=cMouseDownInCluster;});google.maps.event.addDomListener(this.div_,"mousedown",function(){cMouseDownInCluster=true;cDraggingMapByCluster=false;});google.maps.event.addDomListener(this.div_,"click",function(e){cMouseDownInCluster=false;if(!cDraggingMapByCluster){var theBounds;var mz;var mc=cClusterIcon.cluster_.getMarkerClusterer();google.maps.event.trigger(mc,"click",cClusterIcon.cluster_);google.maps.event.trigger(mc,"clusterclick",cClusterIcon.cluster_);if(mc.getZoomOnClick()){mz=mc.getMaxZoom();theBounds=cClusterIcon.cluster_.getBounds();mc.getMap().fitBounds(theBounds);setTimeout(function(){mc.getMap().fitBounds(theBounds);if(mz!==null&&(mc.getMap().getZoom()>mz)){mc.getMap().setZoom(mz+1);}},100);}e.cancelBubble=true;if(e.stopPropagation){e.stopPropagation();}}});google.maps.event.addDomListener(this.div_,"mouseover",function(){var mc=cClusterIcon.cluster_.getMarkerClusterer();google.maps.event.trigger(mc,"mouseover",cClusterIcon.cluster_);});google.maps.event.addDomListener(this.div_,"mouseout",function(){var mc=cClusterIcon.cluster_.getMarkerClusterer();google.maps.event.trigger(mc,"mouseout",cClusterIcon.cluster_);});};ClusterIcon.prototype.onRemove=function(){if(this.div_&&this.div_.parentNode){this.hide();google.maps.event.removeListener(this.boundsChangedListener_);google.maps.event.clearInstanceListeners(this.div_);this.div_.parentNode.removeChild(this.div_);this.div_=null;}};ClusterIcon.prototype.draw=function(){if(this.visible_){var pos=this.getPosFromLatLng_(this.center_);this.div_.style.top=pos.y+"px";this.div_.style.left=pos.x+"px";}};ClusterIcon.prototype.hide=function(){if(this.div_){this.div_.style.display="none";}this.visible_=false;};ClusterIcon.prototype.show=function(){if(this.div_){var img="";var bp=this.backgroundPosition_.split(" ");var spriteH=parseInt(bp[0].trim(),10);var spriteV=parseInt(bp[1].trim(),10);var pos=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(pos);img="";this.div_.innerHTML=img+"
"+this.sums_.text+"
";if(typeof this.sums_.title==="undefined"||this.sums_.title===""){this.div_.title=this.cluster_.getMarkerClusterer().getTitle();}else{this.div_.title=this.sums_.title;}this.div_.style.display="";}this.visible_=true;};ClusterIcon.prototype.useStyle=function(sums){this.sums_=sums;var index=Math.max(0,sums.index-1);index=Math.min(this.styles_.length-1,index);var style=this.styles_[index];this.url_=style.url;this.height_=style.height;this.width_=style.width;this.anchorText_=style.anchorText||[0,0];this.anchorIcon_=style.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)];this.textColor_=style.textColor||"black";this.textSize_=style.textSize||11;this.textDecoration_=style.textDecoration||"none";this.fontWeight_=style.fontWeight||"bold";this.fontStyle_=style.fontStyle||"normal";this.fontFamily_=style.fontFamily||"Arial,sans-serif";this.backgroundPosition_=style.backgroundPosition||"0 0";};ClusterIcon.prototype.setCenter=function(center){this.center_=center;};ClusterIcon.prototype.createCss=function(pos){var style=[];style.push("cursor: pointer;");style.push("position: absolute; top: "+pos.y+"px; left: "+pos.x+"px;");style.push("width: "+this.width_+"px; height: "+this.height_+"px;");return style.join("");};ClusterIcon.prototype.getPosFromLatLng_=function(latlng){var pos=this.getProjection().fromLatLngToDivPixel(latlng);pos.x-=this.anchorIcon_[1];pos.y-=this.anchorIcon_[0];pos.x=parseInt(pos.x,10);pos.y=parseInt(pos.y,10);return pos;};function Cluster(mc){this.markerClusterer_=mc;this.map_=mc.getMap();this.gridSize_=mc.getGridSize();this.minClusterSize_=mc.getMinimumClusterSize();this.averageCenter_=mc.getAverageCenter();this.markers_=[];this.center_=null;this.bounds_=null;this.clusterIcon_=new ClusterIcon(this,mc.getStyles());}Cluster.prototype.getSize=function(){return this.markers_.length;};Cluster.prototype.getMarkers=function(){return this.markers_;};Cluster.prototype.getCenter=function(){return this.center_;};Cluster.prototype.getMap=function(){return this.map_;};Cluster.prototype.getMarkerClusterer=function(){return this.markerClusterer_;};Cluster.prototype.getBounds=function(){var i;var bounds=new google.maps.LatLngBounds(this.center_,this.center_);var markers=this.getMarkers();for(i=0;imz){if(marker.getMap()!==this.map_){marker.setMap(this.map_);}}else if(mCountmz){this.clusterIcon_.hide();return;}if(mCount0){return;}for(i=0;i3){mapBounds=new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast());}else{mapBounds=new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));}var bounds=this.getExtendedBounds(mapBounds);var iLast=Math.min(iFirst+this.batchSize_,this.markers_.length);for(i=iFirst;i http://larsonsrealestate.com/wp-content/plugins/cornerstone/assets/dist/js/site/cs-head.min.js?ver=1.3.0 !function(e,i,t){function s(e,i){return typeof e===i}function o(){var e,i,t,o,n,l,r;for(var a in w)if(w.hasOwnProperty(a)){if(e=[],i=w[a],i.name&&(e.push(i.name.toLowerCase()),i.options&&i.options.aliases&&i.options.aliases.length))for(t=0;tf;f++)if(v=e[f],y=z.style[v],d(v,"-")&&(v=u(v)),z.style[v]!==t){if(n||s(o,"undefined"))return r(),"pfx"==i?v:!0;try{z.style[v]=o}catch(w){}if(z.style[v]!=y)return r(),"pfx"==i?v:!0}return r(),!1}function h(e,i){return function(){return e.apply(i,arguments)}}function v(e,i,t){var o;for(var n in e)if(e[n]in i)return t===!1?e[n]:(o=i[e[n]],s(o,"function")?h(o,t||i):o);return!1}function y(e,i,t,o,n){var l=e.charAt(0).toUpperCase()+e.slice(1),r=(e+" "+P.join(l+" ")+l).split(" ");return s(i,"string")||s(i,"undefined")?f(r,i,o,n):(r=(e+" "+A.join(l+" ")+l).split(" "),v(r,i,t))}function k(e,i,s){return y(e,t,t,i,s)}var w=[],m={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,i){var t=this;setTimeout(function(){i(t[e])},0)},addTest:function(e,i,t){w.push({name:e,fn:i,options:t})},addAsyncTest:function(e){w.push({name:null,fn:e})}},T=function(){};T.prototype=m,T=new T;var g=[],S=i.documentElement,$="svg"===S.nodeName.toLowerCase(),C=m._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):[];m._prefixes=C;var b=m.testStyles=a;T.addTest("touchevents",function(){var t;if("ontouchstart"in e||e.DocumentTouch&&i instanceof DocumentTouch)t=!0;else{var s=["@media (",C.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");b(s,function(e){t=9===e.offsetTop})}return t});var x="Moz O ms Webkit",P=m._config.usePrefixes?x.split(" "):[];m._cssomPrefixes=P;var O={elem:l("modernizr")};T._q.push(function(){delete O.elem});var z={style:O.elem.style};T._q.unshift(function(){delete z.style});var A=m._config.usePrefixes?x.toLowerCase().split(" "):[];m._domPrefixes=A,m.testAllProps=y,m.testAllProps=k,T.addTest("cssanimations",k("animationName","a",!0)),T.addTest("csspointerevents",function(){var e=l("a").style;return e.cssText="pointer-events:auto","auto"===e.pointerEvents}),T.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&k("transform","scale(1)",!0)});var j="CSS"in e&&"supports"in e.CSS,L="supportsCSS"in e;T.addTest("supports",j||L),T.addTest("csstransforms3d",function(){var e=!!k("perspective","1px",!0),i=T._config.usePrefixes;if(e&&(!i||"webkitPerspective"in S.style)){var t,s="#modernizr{width:0;height:0}";T.supports?t="@supports (perspective: 1px)":(t="@media (transform-3d)",i&&(t+=",(-webkit-transform-3d)")),t+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",b(s+t,function(i){e=7===i.offsetWidth&&18===i.offsetHeight})}return e}),T.addTest("preserve3d",k("transformStyle","preserve-3d")),T.addTest("csstransitions",k("transition","all",!0)),o(),n(g),delete m.addTest,delete m.addAsyncTest;for(var E=0;E'+(i+1)+""},dots:!1,draggable:!0,easing:"linear",fade:!1,infinite:!0,lazyLoad:"ondemand",onBeforeChange:null,onAfterChange:null,onInit:null,onReInit:null,pauseOnHover:!0,responsive:null,slide:"div",slidesToShow:1,slidesToScroll:1,speed:300,swipe:!0,touchMove:!0,touchThreshold:5,useCSS:!0,vertical:!1},l.initials={animating:!1,autoPlayTimer:null,currentSlide:0,currentLeft:null,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1},e.extend(l,l.initials),l.activeBreakpoint=null,l.animType=null,l.animProp=null,l.breakpoints=[],l.breakpointSettings=[],l.cssTransitions=!1,l.paused=!1,l.positionProp=null,l.$slider=e(i),l.$slidesCache=null,l.transformType=null,l.transitionType=null,l.windowWidth=0,l.windowTimer=null,l.options=e.extend({},l.defaults,s),l.originalSettings=l.options,o=l.options.responsive||null,o&&o.length>-1){for(n in o)o.hasOwnProperty(n)&&(l.breakpoints.push(o[n].breakpoint),l.breakpointSettings[o[n].breakpoint]=o[n].settings);l.breakpoints.sort(function(e,i){return i-e})}l.autoPlay=e.proxy(l.autoPlay,l),l.autoPlayClear=e.proxy(l.autoPlayClear,l),l.changeSlide=e.proxy(l.changeSlide,l),l.setPosition=e.proxy(l.setPosition,l),l.swipeHandler=e.proxy(l.swipeHandler,l),l.dragHandler=e.proxy(l.dragHandler,l),l.keyHandler=e.proxy(l.keyHandler,l),l.autoPlayIterator=e.proxy(l.autoPlayIterator,l),l.instanceUid=t++,l.init()}var t=0;return i}(),i.prototype.addSlide=function(i,t,s){var o=this;if("boolean"==typeof t)s=t,t=null;else if(0>t||t>=o.slideCount)return!1;o.unload(),"number"==typeof t?0===t&&0===o.$slides.length?e(i).appendTo(o.$slideTrack):s?e(i).insertBefore(o.$slides.eq(t)):e(i).insertAfter(o.$slides.eq(t)):s===!0?e(i).prependTo(o.$slideTrack):e(i).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).remove(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},i.prototype.animateSlide=function(i,t){var s={},o=this;o.transformsEnabled===!1?o.options.vertical===!1?o.$slideTrack.animate({left:i},o.options.speed,o.options.easing,t):o.$slideTrack.animate({top:i},o.options.speed,o.options.easing,t):o.cssTransitions===!1?e({animStart:o.currentLeft}).animate({animStart:i},{duration:o.options.speed,easing:o.options.easing,step:function(e){o.options.vertical===!1?(s[o.animType]="translate("+e+"px, 0px)",o.$slideTrack.css(s)):(s[o.animType]="translate(0px,"+e+"px)",o.$slideTrack.css(s))},complete:function(){t&&t.call()}}):(o.applyTransition(),o.options.vertical===!1?s[o.animType]="translate3d("+i+"px, 0px, 0px)":s[o.animType]="translate3d(0px,"+i+"px, 0px)",o.$slideTrack.css(s),t&&setTimeout(function(){o.disableTransition(),t.call()},o.options.speed))},i.prototype.applyTransition=function(e){var i=this,t={};i.options.fade===!1?t[i.transitionType]=i.transformType+" "+i.options.speed+"ms "+i.options.cssEase:t[i.transitionType]="opacity "+i.options.speed+"ms "+i.options.cssEase,i.options.fade===!1?i.$slideTrack.css(t):i.$slides.eq(e).css(t)},i.prototype.autoPlay=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer),e.slideCount>e.options.slidesToShow&&e.paused!==!0&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},i.prototype.autoPlayClear=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer)},i.prototype.autoPlayIterator=function(){var e=this;e.options.infinite===!1?1===e.direction?(e.currentSlide+1===e.slideCount-1&&(e.direction=0),e.slideHandler(e.currentSlide+e.options.slidesToScroll)):(e.currentSlide-1===0&&(e.direction=1),e.slideHandler(e.currentSlide-e.options.slidesToScroll)):e.slideHandler(e.currentSlide+e.options.slidesToScroll)},i.prototype.buildArrows=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow=e('').appendTo(i.$slider),i.$nextArrow=e('').appendTo(i.$slider),i.options.infinite!==!0&&i.$prevArrow.addClass("slick-disabled"))},i.prototype.buildDots=function(){var i,t,s=this;if(s.options.dots===!0&&s.slideCount>s.options.slidesToShow){for(t='
    ',i=0;i<=s.getDotCount();i+=1)t+="
  • "+s.options.customPaging.call(this,s,i)+"
  • ";t+="
",s.$dots=e(t).appendTo(s.$slider),s.$dots.find("li").first().addClass("slick-active")}},i.prototype.buildOut=function(){var i=this;i.$slides=i.$slider.children(i.options.slide+":not(.slick-cloned)").addClass("slick-slide"),i.slideCount=i.$slides.length,i.$slidesCache=i.$slides,i.$slider.addClass("slick-slider"),i.$slideTrack=0===i.slideCount?e('
').appendTo(i.$slider):i.$slides.wrapAll('
').parent(),i.$list=i.$slideTrack.wrap('
').parent(),i.$slideTrack.css("opacity",0),i.options.centerMode===!0&&(i.options.infinite=!0,i.options.slidesToScroll=1,i.options.slidesToShow%2===0&&(i.options.slidesToShow=3)),e("img[data-lazy]",i.$slider).not("[src]").addClass("slick-loading"),i.setupInfinite(),i.buildArrows(),i.buildDots(),i.options.accessibility===!0&&i.$list.prop("tabIndex",0),i.setSlideClasses(0),i.options.draggable===!0&&i.$list.addClass("draggable")},i.prototype.checkResponsive=function(){var i,t,s=this;if(s.originalSettings.responsive&&s.originalSettings.responsive.length>-1&&null!==s.originalSettings.responsive){t=null;for(i in s.breakpoints)s.breakpoints.hasOwnProperty(i)&&e(window).width()t;)o++,s+=i.options.slidesToScroll,t=s+i.options.slidesToShow;return o},i.prototype.getLeft=function(e){var i,t,s=this,o=0;return s.slideOffset=0,t=s.$slides.first().outerHeight(),s.options.infinite===!0?(s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideWidth*s.options.slidesToShow*-1,o=t*s.options.slidesToShow*-1),s.slideCount%s.options.slidesToScroll!==0&&e+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideCount%s.options.slidesToShow*s.slideWidth*-1,o=s.slideCount%s.options.slidesToShow*t*-1)):s.slideCount%s.options.slidesToShow!==0&&e+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.options.slidesToShow*s.slideWidth-s.slideCount%s.options.slidesToShow*s.slideWidth,o=s.slideCount%s.options.slidesToShow*t),s.options.centerMode===!0&&(s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)-s.slideWidth),i=s.options.vertical===!1?e*s.slideWidth*-1+s.slideOffset:e*t*-1+o},i.prototype.init=function(){var i=this;e(i.$slider).hasClass("slick-initialized")||(e(i.$slider).addClass("slick-initialized"),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.checkResponsive()),null!==i.options.onInit&&i.options.onInit.call(this,i)},i.prototype.initArrowEvents=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.on("click.slick",{message:"next"},e.changeSlide))},i.prototype.initDotEvents=function(){var i=this;i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&e("li",i.$dots).on("click.slick",{message:"index"},i.changeSlide)},i.prototype.initializeEvents=function(){var i=this;i.initArrowEvents(),i.initDotEvents(),i.$list.on("touchstart.slick mousedown.slick",{action:"start"},i.swipeHandler),i.$list.on("touchmove.slick mousemove.slick",{action:"move"},i.swipeHandler),i.$list.on("touchend.slick mouseup.slick",{action:"end"},i.swipeHandler),i.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},i.swipeHandler),i.options.pauseOnHover===!0&&i.options.autoplay===!0&&(i.$list.on("mouseenter.slick",i.autoPlayClear),i.$list.on("mouseleave.slick",i.autoPlay)),i.options.accessibility===!0&&i.$list.on("keydown.slick",i.keyHandler),e(window).on("orientationchange.slick.slick-"+i.instanceUid,function(){i.checkResponsive(),i.setPosition()}),e(window).on("resize.slick.slick-"+i.instanceUid,function(){e(window).width!==i.windowWidth&&(clearTimeout(i.windowDelay),i.windowDelay=window.setTimeout(function(){i.windowWidth=e(window).width(),i.checkResponsive(),i.setPosition()},50))}),e(window).on("load.slick.slick-"+i.instanceUid,i.setPosition)},i.prototype.initUI=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&e.$dots.show(),e.options.autoplay===!0&&e.autoPlay()},i.prototype.keyHandler=function(e){var i=this;37===e.keyCode?i.changeSlide({data:{message:"previous"}}):39===e.keyCode&&i.changeSlide({data:{message:"next"}})},i.prototype.lazyLoad=function(){var i,t,s,o,n=this;n.options.centerMode===!0?(s=n.options.slidesToShow+n.currentSlide-1,o=s+n.options.slidesToShow+2):(s=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,o=s+n.options.slidesToShow),i=n.$slider.find(".slick-slide").slice(s,o),e("img[data-lazy]",i).not("[src]").each(function(){e(this).css({opacity:0}).attr("src",e(this).attr("data-lazy")).removeClass("slick-loading").load(function(){e(this).animate({opacity:1},200)})}),n.currentSlide>=n.slideCount-n.options.slidesToShow?(t=n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow),e("img[data-lazy]",t).not("[src]").each(function(){e(this).css({opacity:0}).attr("src",e(this).attr("data-lazy")).removeClass("slick-loading").load(function(){e(this).animate({opacity:1},200)})})):0===n.currentSlide&&(t=n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow),e("img[data-lazy]",t).not("[src]").each(function(){e(this).css({opacity:0}).attr("src",e(this).attr("data-lazy")).removeClass("slick-loading").load(function(){e(this).animate({opacity:1},200)})}))},i.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},i.prototype.postSlide=function(e){var i=this;null!==i.options.onAfterChange&&i.options.onAfterChange.call(this,i,e),i.animating=!1,i.setPosition(),i.swipeLeft=null,i.options.autoplay===!0&&i.paused===!1&&i.autoPlay()},i.prototype.progressiveLazyLoad=function(){var i,t,s=this;i=e("img[data-lazy]").not("[src]").length,i>0&&(t=e(e("img[data-lazy]",s.$slider).not("[src]").get(0)),t.attr("src",t.attr("data-lazy")).removeClass("slick-loading").load(function(){s.progressiveLazyLoad()}))},i.prototype.refresh=function(){var i=this;i.destroy(),e.extend(i,i.initials),i.init()},i.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.setSlideClasses(0),e.setPosition(),null!==e.options.onReInit&&e.options.onReInit.call(this,e)},i.prototype.removeSlide=function(e,i){var t=this;return"boolean"==typeof e?(i=e,e=i===!0?0:t.slideCount-1):e=i===!0?--e:e,t.slideCount<1||0>e||e>t.slideCount-1?!1:(t.unload(),t.$slideTrack.children(this.options.slide).eq(e).remove(),t.$slides=t.$slideTrack.children(this.options.slide),t.$slideTrack.children(this.options.slide).remove(),t.$slideTrack.append(t.$slides),t.$slidesCache=t.$slides,void t.reinit())},i.prototype.setCSS=function(e){var i,t,s=this,o={};i="left"==s.positionProp?e+"px":"0px",t="top"==s.positionProp?e+"px":"0px",o[s.positionProp]=e,s.transformsEnabled===!1?s.$slideTrack.css(o):(o={},s.cssTransitions===!1?(o[s.animType]="translate("+i+", "+t+")",s.$slideTrack.css(o)):(o[s.animType]="translate3d("+i+", "+t+", 0px)",s.$slideTrack.css(o)))},i.prototype.setDimensions=function(){var e=this;e.options.centerMode===!0?e.$slideTrack.children(".slick-slide").width(e.slideWidth):e.$slideTrack.children(".slick-slide").width(e.slideWidth),e.options.vertical===!1?(e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length)),e.options.centerMode===!0&&e.$list.css({padding:"0px "+e.options.centerPadding})):(e.$list.height(e.$slides.first().outerHeight()*e.options.slidesToShow),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight()*e.$slideTrack.children(".slick-slide").length)),e.options.centerMode===!0&&e.$list.css({padding:e.options.centerPadding+" 0px"}))},i.prototype.setFade=function(){var i,t=this;t.$slides.each(function(s,o){i=t.slideWidth*s*-1,e(o).css({position:"relative",left:i,top:0,zIndex:800,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:900,opacity:1})},i.prototype.setPosition=function(){var e=this;e.setValues(),e.setDimensions(),e.options.fade===!1?e.setCSS(e.getLeft(e.currentSlide)):e.setFade()},i.prototype.setProps=function(){var e=this;e.positionProp=e.options.vertical===!0?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),(void 0!==document.body.style.WebkitTransition||void 0!==document.body.style.MozTransition||void 0!==document.body.style.msTransition)&&e.options.useCSS===!0&&(e.cssTransitions=!0),void 0!==document.body.style.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition"),void 0!==document.body.style.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition"),void 0!==document.body.style.msTransform&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=null!==e.animType},i.prototype.setValues=function(){var e=this;e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),e.options.vertical===!1?e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow):e.slideWidth=Math.ceil(e.listWidth)},i.prototype.setSlideClasses=function(e){var i,t,s,o=this;o.$slider.find(".slick-slide").removeClass("slick-active").removeClass("slick-center"),t=o.$slider.find(".slick-slide"),o.options.centerMode===!0?(i=Math.floor(o.options.slidesToShow/2),e>=i&&e<=o.slideCount-1-i?o.$slides.slice(e-i,e+i+1).addClass("slick-active"):(s=o.options.slidesToShow+e,t.slice(s-i+1,s+i+2).addClass("slick-active")),0===e?t.eq(t.length-1-o.options.slidesToShow).addClass("slick-center"):e===o.slideCount-1&&t.eq(o.options.slidesToShow).addClass("slick-center"),o.$slides.eq(e).addClass("slick-center")):e>0&&eo.options.slidesToShow)){for(s=o.options.centerMode===!0?o.options.slidesToShow+1:o.options.slidesToShow,i=o.slideCount;i>o.slideCount-s;i-=1)t=i-1,e(o.$slides[t]).clone().attr("id","").prependTo(o.$slideTrack).addClass("slick-cloned");for(i=0;s>i;i+=1)t=i,e(o.$slides[t]).clone().attr("id","").appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each(function(){e(this).attr("id","")})}},i.prototype.slideHandler=function(e){var i,t,s,o,n=null,l=this;return l.animating===!0?!1:(i=e,n=l.getLeft(i),s=l.getLeft(l.currentSlide),o=l.slideCount%l.options.slidesToScroll!==0?l.options.slidesToScroll:0,l.currentLeft=null===l.swipeLeft?s:l.swipeLeft,l.options.infinite===!1&&(0>e||e>l.slideCount-l.options.slidesToShow+o)?(l.options.fade===!1&&(i=l.currentSlide,l.animateSlide(s,function(){l.postSlide(i)})),!1):(l.options.autoplay===!0&&clearInterval(l.autoPlayTimer),t=0>i?l.slideCount%l.options.slidesToScroll!==0?l.slideCount-l.slideCount%l.options.slidesToScroll:l.slideCount-l.options.slidesToScroll:i>l.slideCount-1?0:i,l.animating=!0,null!==l.options.onBeforeChange&&e!==l.currentSlide&&l.options.onBeforeChange.call(this,l,l.currentSlide,t),l.currentSlide=t,l.setSlideClasses(l.currentSlide),l.updateDots(),l.updateArrows(),l.options.fade===!0?(l.fadeSlide(t,function(){l.postSlide(t)}),!1):void l.animateSlide(n,function(){l.postSlide(t)})))},i.prototype.startLoad=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},i.prototype.swipeDirection=function(){var e,i,t,s,o=this;return e=o.touchObject.startX-o.touchObject.curX,i=o.touchObject.startY-o.touchObject.curY,t=Math.atan2(i,e),s=Math.round(180*t/Math.PI),0>s&&(s=360-Math.abs(s)),45>=s&&s>=0?"left":360>=s&&s>=315?"left":s>=135&&225>=s?"right":"vertical"},i.prototype.swipeEnd=function(i){var t=this;if(t.$list.removeClass("dragging"),void 0===t.touchObject.curX)return!1;if(t.touchObject.swipeLength>=t.touchObject.minSwipe)switch(e(i.target).on("click.slick",function(i){i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault(),e(i.target).off("click.slick")}),t.swipeDirection()){case"left":t.slideHandler(t.currentSlide+t.options.slidesToScroll),t.touchObject={};break;case"right":t.slideHandler(t.currentSlide-t.options.slidesToScroll),t.touchObject={}}else t.touchObject.startX!==t.touchObject.curX&&(t.slideHandler(t.currentSlide),t.touchObject={})},i.prototype.swipeHandler=function(e){var i=this;if("ontouchend"in document&&i.options.swipe===!1)return!1;if(i.options.draggable===!1&&!e.originalEvent.touches)return!0;switch(i.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,i.touchObject.minSwipe=i.listWidth/i.options.touchThreshold,e.data.action){case"start":i.swipeStart(e);break;case"move":i.swipeMove(e);break;case"end":i.swipeEnd(e)}},i.prototype.swipeMove=function(e){var i,t,s,o,n=this;return o=void 0!==e.originalEvent?e.originalEvent.touches:null,i=n.getLeft(n.currentSlide),!n.$list.hasClass("dragging")||o&&1!==o.length?!1:(n.touchObject.curX=void 0!==o?o[0].pageX:e.clientX,n.touchObject.curY=void 0!==o?o[0].pageY:e.clientY,n.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(n.touchObject.curX-n.touchObject.startX,2))),t=n.swipeDirection(),"vertical"!==t?(void 0!==e.originalEvent&&n.touchObject.swipeLength>4&&e.preventDefault(),s=n.touchObject.curX>n.touchObject.startX?1:-1,n.options.vertical===!1?n.swipeLeft=i+n.touchObject.swipeLength*s:n.swipeLeft=i+n.touchObject.swipeLength*(n.$list.height()/n.listWidth)*s,n.options.fade===!0||n.options.touchMove===!1?!1:n.animating===!0?(n.swipeLeft=null,!1):void n.setCSS(n.swipeLeft)):void 0)},i.prototype.swipeStart=function(e){var i,t=this;return 1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(i=e.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==i?i.pageX:e.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==i?i.pageY:e.clientY,void t.$list.addClass("dragging"))},i.prototype.unfilterSlides=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).remove(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},i.prototype.unload=function(){var i=this;e(".slick-cloned",i.$slider).remove(),i.$dots&&i.$dots.remove(),i.$prevArrow&&(i.$prevArrow.remove(),i.$nextArrow.remove()),i.$slides.removeClass("slick-slide slick-active slick-visible").removeAttr("style")},i.prototype.updateArrows=function(){var e=this;e.options.arrows===!0&&e.options.infinite!==!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.removeClass("slick-disabled"),e.$nextArrow.removeClass("slick-disabled"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled"),e.$nextArrow.removeClass("slick-disabled")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&(e.$nextArrow.addClass("slick-disabled"),e.$prevArrow.removeClass("slick-disabled")))},i.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active"),e.$dots.find("li").eq(e.currentSlide/e.options.slidesToScroll).addClass("slick-active"))},e.fn.slick=function(e){var t=this;return t.each(function(t,s){s.slick=new i(s,e)})},e.fn.slickAdd=function(e,i,t){var s=this;return s.each(function(s,o){o.slick.addSlide(e,i,t)})},e.fn.slickCurrentSlide=function(){var e=this;return e.get(0).slick.getCurrent()},e.fn.slickFilter=function(e){var i=this;return i.each(function(i,t){t.slick.filterSlides(e)})},e.fn.slickGoTo=function(e){var i=this;return i.each(function(i,t){t.slick.slideHandler(e)})},e.fn.slickNext=function(){var e=this;return e.each(function(e,i){i.slick.changeSlide({data:{message:"next"}})})},e.fn.slickPause=function(){var e=this;return e.each(function(e,i){i.slick.autoPlayClear(),i.slick.paused=!0})},e.fn.slickPlay=function(){var e=this;return e.each(function(e,i){i.slick.paused=!1,i.slick.autoPlay()})},e.fn.slickPrev=function(){var e=this;return e.each(function(e,i){i.slick.changeSlide({data:{message:"previous"}})})},e.fn.slickRemove=function(e,i){var t=this;return t.each(function(t,s){s.slick.removeSlide(e,i)})},e.fn.slickSetOption=function(e,i,t){var s=this;return s.each(function(s,o){o.slick.options[e]=i,t===!0&&(o.slick.unload(),o.slick.reinit())})},e.fn.slickUnfilter=function(){var e=this;return e.each(function(e,i){i.slick.unfilterSlides()})},e.fn.unslick=function(){var e=this;return e.each(function(e,i){i.slick.destroy()})}});